package com.definity.toolkit.ui;

import java.awt.Component;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;

public class FrameResizeListener extends ComponentAdapter {

	@Override
	public void componentResized(ComponentEvent e) {
		Component c = (Component) e.getSource();
		
		UIToolkit.getInstance().setAppSize(c.getSize());
	}

	@Override
	public void componentMoved(ComponentEvent e) {
		Component c = (Component) e.getSource();

		UIToolkit.getInstance().setAppLocation(c.getLocation());
	}

}
